package com.bjsdzk.collector.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.boot.ExitCodeGenerator;
import org.springframework.stereotype.Component;

//@Component
public class CloseProject implements DisposableBean, ExitCodeGenerator {
    private Logger logger = LoggerFactory.getLogger(CloseProject.class);

    @Override
    public void destroy() throws Exception {
        logger.info("<<<<<<<<<<<我被销毁了......................>>>>>>>>>>>>>>>");
    }

    @Override
    public int getExitCode() {
        logger.info("<<<<<<<<<<<我被exit了......................>>>>>>>>>>>>>>>");
        return 5;
    }
}